package com.sms.service;

import com.sms.pojo.Department;
import org.springframework.stereotype.Service;

import java.util.List;


public interface DepartmentService {

    //获得所有部门信息
    List<Department> getDepartments();

    //通过id获得部门
    Department getDepatmentById(Integer id);

    Department getDepatmentByName(String name);
}
